package com.cnzhizi.multilist.utils;



import com.cnzhizi.multilist.bean.FilterEntity;
import com.cnzhizi.multilist.bean.FilterTwoEntity;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

/**
 * Created by sunkm on 16/7/9.
 */
public class ModelUtil {
   // 精煤（3）洗选煤（11）筛选煤（11）原煤（2）低质煤（3）

    // 分类数据
    public static List<FilterTwoEntity> getCategoryData() {
        List<FilterTwoEntity> list = new ArrayList<>();
        list.add(new FilterTwoEntity("煤炭交易", getFilterData()));
        list.add(new FilterTwoEntity("煤化工交易", getFilterData1()));
        list.add(new FilterTwoEntity("机电设备交易", getFilterData2()));

        return list;
    }

    // 排序数据
    public static List<FilterEntity> getSortData() {
        List<FilterEntity> list = new ArrayList<>();
        list.add(new FilterEntity("山东省", "1"));
        list.add(new FilterEntity("北京市", "2"));
        list.add(new FilterEntity("上海市", "3"));
        list.add(new FilterEntity("天津市", "4"));
        list.add(new FilterEntity("河北省", "5"));
        list.add(new FilterEntity("山西省", "6"));
        list.add(new FilterEntity("辽宁省", "7"));
        list.add(new FilterEntity("吉林省", "8"));
        list.add(new FilterEntity("黑龙江", "9"));
        return list;
    }

    // 筛选数据
    public static List<FilterEntity> getFilterData3() {

        List<FilterEntity> list = new ArrayList<>();
        list.add(new FilterEntity("发布时间", "id"));
        list.add(new FilterEntity("单价", "price"));
        list.add(new FilterEntity("存量", "number"));

        return list;
    }
    public static List<FilterEntity> getFilterData4() {

        List<FilterEntity> list = new ArrayList<>();
        list.add(new FilterEntity("保证金", "1"));
        list.add(new FilterEntity("信誉", "2"));
        return list;
    }
    public static List<FilterEntity> getFilterData5() {

        List<FilterEntity> list = new ArrayList<>();
        list.add(new FilterEntity("时间", "1"));
        list.add(new FilterEntity("价格", "2"));
        return list;
    }
    public static List<FilterEntity> getFilterData() {

        List<FilterEntity> list = new ArrayList<>();
        list.add(new FilterEntity("精煤", "1"));
        list.add(new FilterEntity("洗选煤", "2"));
        list.add(new FilterEntity("筛选煤", "3"));
        list.add(new FilterEntity("原煤", "4"));
        list.add(new FilterEntity("低质煤", "5"));

        return list;
    }
    // 筛选数据
    public static List<FilterEntity> getFilterData1() {
        //洗原煤（2）洗混煤（1）洗末煤（3）洗粉煤（1）洗特大块（1）洗大块（3）洗中块（0）洗混中块（0）洗混块（0）洗混小块（0）洗粒煤（0）
        List<FilterEntity> list = new ArrayList<>();
        list.add(new FilterEntity("气化", "1"));
        list.add(new FilterEntity("液化", "2"));
 /*       list.add(new FilterEntity("洗末煤", "3"));
        list.add(new FilterEntity("洗粉煤", "4"));
        list.add(new FilterEntity("洗特大块", "5"));
        list.add(new FilterEntity("洗大块", "6"));
        list.add(new FilterEntity("洗中块", "6"));
        list.add(new FilterEntity("洗混中块", "6"));
        list.add(new FilterEntity("洗混块", "6"));
        list.add(new FilterEntity("洗混小块", "6"));
        list.add(new FilterEntity("洗粒煤", "6"));*/
        return list;
    }
    // 筛选数据
    public static List<FilterEntity> getFilterData2() {
        //（2）（1）（1
        List<FilterEntity> list = new ArrayList<>();
        list.add(new FilterEntity("产业类机电设备", "1"));
        list.add(new FilterEntity("信息类机电设备", "2"));
        list.add(new FilterEntity("安装设备", "3"));

        return list;
    }








}
